<template>
    <div class="home-list">
        <div class="homegoods-up">
            <img :src='obj+".jpg"' alt="">
        </div>
       <div class="homegoods-down">
            <p>
            [明星同款]GUCCI花悦绽放 30ml香水
        </p>
        <div class="info">
            <span><img src="../../../../public/ykf-img/country.png" alt=""> 意大利</span><span>包税</span>
        </div>
        <div class="price">
            ￥<span>99.0</span>
        </div>
       </div>
    </div>
</template>

<script>
    export default {
        // props:[a,b,c],
        props:['obj'],
        data(){
            return{
                
            }
        },
        computed:{
            /* imgsrc(){
                 return require('../../../../public'+this.obj.src)
            } */
        },
        mounted(){
            // console.log(this.obj.src)
        }

    }
</script>
<style lang="stylus">
    html 
        font-size 26.66666vw
</style>
<style lang="stylus" scoped>
@import '~@/assets/stylus/border.styl'
@import '~@/assets/stylus/ellipsis.styl'
    .home-list
        width 100%
        
        height 2.33rem
        box-sizing border-box
        background-color #fff
        border-radius .08rem
        color #333
        font-size .13rem
        margin-bottom .15rem


        .homegoods-up 
            width 100%
            height 55.7%
            border 0;
            img 
                // width 100%
                float left
                width 100%
                height 100%
                // height 1.3rem
                border 0
                outline none
        .homegoods-down
            // width 100%

            padding .1rem .08rem 0 .08rem
            height 44.3%
            border_1px(0 0.01rem 0.01rem 0.01rem,#ccc)
            .info
                color #999
                margin-top .05rem
                span+span
                    color #FF6262
                    display inline-block
                    width .52rem
                    height .2rem
                    line-height .2rem
                    background-color #ff626230
                    border-radius .1rem
                    text-align center
                    margin-left .12rem
            
            .price
                color #FF6262

                span
                    font-size .17rem

                 

</style>